package geometricElement;

@SuppressWarnings("serial")
public class TypeNotExistException extends Exception {
	
	// members
	private String type; // the invalid type
	
	// methods
	public TypeNotExistException(String type) {
		// set member as given value
		this.type = type;
	}
	
	public String getMessage() {
		return String.format("The type \"%s\" is not know by the program.", type);		
	}
}
